<?php

class TagController extends Base_Controller
{

   public function init()
    {
    	parent::init();
    }

   
    public function getalltagsAction()
    {
    	$tagService = Application_Model_TagService::getInstance();
    	$tags = $tagService->getAllTags();
    	$this->layout()->tags = $tags;
    	$maxCount = 1;
    	foreach ($tags as $tag) {
    		if ($tag.count > $maxCount) {
    			$maxCount = $tag.count;
    		}
    	}
    	$this->layout()->maxTagCount=$maxCount;
    }

}

